package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.OrderRefundService;
import com.iwop.moto.service.PromotionService;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/8/29.
 */

@Service
public class OrderRefundServiceImpl extends BaseService implements OrderRefundService {
    @Override
    public void inserTorderRefund(SuperRecordModel SRModel) {
        getSqlSession().insert("MOrderRefundMapper.inserTorderRefund", SRModel);
    }

    @Override
    public void updateMOrderRefund(SuperRecordModel SRModel) {
        getSqlSession().update("MOrderRefundMapper.updateMOrderRefund", SRModel);
    }

    @Override
    public SuperRecordModel getOrderRefund(String order_no) {
        return getSqlSession().selectOne("MOrderRefundMapper.getOrderRefund", order_no);
    }
}
